All Functions of Week 4

with

{base}

evaluate expression in the context of a data frame

cut

{base}

Convert Numeric to Factor

library

{base}

Load an R package

sd

{stats}

Get standard deviation of a vector

table

{base}

Obtain frequency table of a variable/cross-tabulation of two variables

t.test

{stats}

Performs one and two sample t-tests on vectors of data.

mean

{base}

Get mean of a vector

mutate

{dplyr}

Modify/create a column in a data frame

setwd

{base}

Set Working Directory

prop.test

{stats}

Test of Equal or Given Proportions

ifelse

{base}

Return a or b depending on the value of test

max

{base}

Get maximum of a vector

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

complete.cases

{stats}

Find Complete Cases

c

{base}

Combine values/vectors into a vector

median

{stats}

Get median of a vector

The end!